package day_2022_12_to_3.day;

/**
 * @author haomin
 * @date 2022/12/23 21:59
 **/
public class Day12_23_Num2011 {
    class Solution {
        public int finalValueAfterOperations(String[] operations) {
            int ans = 0;
            for(String s : operations)
                if(s.charAt(1) == '-') ans--;
                else ans ++;
            return ans;
        }

    }
}